// 头部（完成）
#header {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;

    .navbar {
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 0;
        margin-bottom: 0;
        border: 0;

        .container {
            .collapse {
                .nav {
                    li {
                        margin: auto 1em;
                        transition: 0.5s;

                        a {
                            color: #fff;
                            font-size: 1.3em;
                        }

                        &:hover {
                            background-color: #e89413;
                        }
                    }
                }
            }
        }
    }

    @media screen and (max-width:450px) {
        .navbar {
            .container {
                .nav {
                    li {
                        text-align: center;
                    }
                }
            }
        }
    }
}

// banner图（完成）
#banner {
    width: 100%;
}

// 关于我们
#about {
    width: 100%;
    margin-top: 5em;
    padding-bottom: 3em;

    .container {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .title {
            h3 {
                font-size: 2.5em;
                color: #333333;
            }

            .litter {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .left {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }

                p {
                    color: #87b434;
                    font-size: 1.3em;
                }

                .right {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }
            }
        }

        .desc {
            margin-top: 0.5em;

            .demo {
                width: 100%;
                position: relative;
                margin: 0.5em 0;

                img {
                    width: 100%;
                }

                .cover {
                    position: absolute;
                    width: 50%;
                    height: 100%;
                    top: 0;
                    right: 0;
                    background-color: rgba(0, 0, 0, 0.7);
                    color: #fff;
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: column;
                    align-items: center;
                    text-align: left;
                    justify-content: center;

                    .word {
                        width: 67%;

                        .stitle {
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;

                            h3 {
                                color: #fff;
                                font-family: OSLight;
                                font-size: 1.5em;

                                span {
                                    font-weight: bold;
                                }
                            }
                        }

                        .msg {
                            margin-top: 1em;

                            p {
                                font-weight: lighter;
                                font-size: 1.1em;
                            }
                        }
                    }

                }
            }

            .demo1 {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: #f3f4f6;
                margin: 1em 0;

                .left {
                    width: 50%;
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;

                    .word1 {
                        width: 67%;

                        .smtitle {
                            text-align: left;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;

                            h3 {
                                color: #313131;
                                font-family: OSLight;
                                font-size: 1.5em;

                                span {
                                    font-weight: bold;
                                    color: #313131;
                                }
                            }
                        }

                        .msg1 {
                            margin-top: 1em;
                            text-align: left;

                            p {
                                font-weight: lighter;
                                font-size: 1.1em;
                                color: #313131;
                            }
                        }
                    }
                }

                .right {
                    width: 50%;
                }
            }

            .demo2 {
                display: flex;
                width: 100%;
                justify-content: space-between;
                align-items: center;

                .box {
                    width: 32%;
                    position: relative;

                    .cover {
                        width: 100%;
                        background-color: rgba(0, 0, 0, 0.7);
                        position: absolute;
                        bottom: 0;
                        display: flex;
                        flex-wrap: wrap;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        padding: 1em 0;

                        h3 {
                            color: #fff;
                            font-size: 1.5em;
                            font-weight: bold;
                            line-height: 1em;
                        }

                        p {
                            color: #fff;
                            font-family: OSLight;
                        }
                    }
                }

            }

            .demo3 {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 5em;
                position: relative;

                .box {
                    width: 50%;
                    position: relative;

                    .leftjt {
                        width: 10%;
                        height: 20%;
                        background-color: rgba(0, 0, 0, 0.7);
                        position: absolute;
                        left: 0;
                        top: 40%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                    }

                    .rightjt {
                        width: 10%;
                        height: 20%;
                        background-color: #e89413;
                        position: absolute;
                        right: 0;
                        top: 40%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                    }
                }

                .bigbox {
                    position: absolute;
                    .leftjt{
                        display: none;
                    }
                    .rightjt{
                        display: none;
                    }
                    .cover {
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        top: 0;
                        right: 0;
                        background-color: rgba(0, 0, 0, 0.7);
                        color: #fff;
                        display: flex;
                        flex-wrap: wrap;
                        flex-direction: column;
                        align-items: center;
                        text-align: left;
                        justify-content: center;

                        .word {
                            width: 56%;

                            .stitle {
                                h3 {
                                    color: #fff;
                                    font-family: OSLight;
                                    font-size: 1.5em;

                                    span {
                                        font-weight: bold;
                                    }
                                }
                            }

                            .msg {
                                margin-top: 1em;

                                p {
                                    font-weight: lighter;
                                    font-size: 1.1em;
                                }
                            }
                        }

                    }
                }
            }
        }

    }

    @media screen and (max-width:1229px) {
        .container{
            .desc{
                .demo3{
                    .box{
                        display: none;
                    }
                    .bigbox{
                        position: relative;
                        .leftjt{
                            display: block;
                            position: absolute;
                            width: 10%;
                            height: 20%;
                            left: 0;
                            top: 40%;
                            background-color: rgba(0, 0, 0, 0.7);
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            cursor: pointer;
                        }
                        .rightjt{
                            display: block;
                            position: absolute;
                            width: 10%;
                            height: 20%;
                            right: 0;
                            top: 40%;
                            background-color: #e89413;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            cursor: pointer;
                        }
                        .cover{
                            .word{
                                width: 70%;
                                .stitle{
                                    h3{
                                        font-size: 1.1em;
                                        white-space: nowrap;
                                        overflow: hidden;
                                        text-overflow: ellipsis;
                                    }
                                }
                                .msg{
                                    margin-top: 0.5em;
                                    p{
                                        font-size: 1em;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    @media screen and (max-width:675px) {
        & {
            margin-top: 3em;

            .container {
                .title {
                    h3 {
                        font-size: 2em;
                    }

                    .litter {
                        p {
                            font-size: 1.1em;
                        }
                    }
                }

                .desc {
                    .demo {
                        .cover {
                            width: 100%;
                            .word{
                                width: 90%;
                            }
                        }
                    }
                    .demo1{
                        .left{
                           width: 100%; 
                           .word1{
                            width: 90%;
                           }
                        }
                        .right{
                            display: none;
                        }
                        
                    }

                }
            }
        }

    }
    @media screen and (max-width:430px) {
        .container{
            .desc{
                .demo{
                    padding: 1em 0;
                    .cover{
                        .word{
                            .stitle{
                                h3{
                                    font-size: 1.2em;
                                }
                            }
                            .msg{
                                margin-top: 0.5em;
                                p{
                                    font-size: 1em;
                                }
                            }
                        }
                    }
                }
                .demo1{
                    .left{
                        .word1{
                            .smtitle{
                                h3{
                                    font-size: 1.2em;
                                }
                            }
                            .msg1{
                                margin-top: 0.5em;
                                p{
                                    font-size: 1em;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

//案例展示
#show {
    width: 100%;
    margin-top: 5em;
    .container {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        // 标题
        .title {
            h3 {
                font-size: 2.5em;
                color: #333333;
                text-transform: uppercase;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .litter {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .left {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }

                p {
                    color: #87b434;
                    font-size: 1.3em;
                }

                .right {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }
            }
        }

        // 选项
        .choose {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 0.5em;

            input {
                display: none;
            }

            label {
                width: 12%;
                cursor: pointer;
            }

            #chk1:checked+.choice {
                color: #87b434;
            }

            #chk2:checked+.choice {
                color: #87b434;
            }

            #chk3:checked+.choice {
                color: #87b434;
            }

            #chk4:checked+.choice {
                color: #87b434;
            }
        }

        // 展示图片
        .showpic {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;

            .tu {
                width: 46%;
                margin: 0.5em;
            }
        }

        // 分页
        .pages {
            nav {
                ul {
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    li {

                        a {
                            margin: 0 0.5em;
                            display: block;
                            width: 3em;
                            border: 1px solid #999999;
                            color: #666666;
                        }

                        &:last-of-type a {
                            width: 6em;
                        }

                        &:hover a {
                            background-color: #e89413;
                            border: none;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width:675px) {
        &{
            margin-top: 3em;
            .container{
                .title {
                    h3 {
                        font-size: 2em;
                    }

                    .litter {
                        p {
                            font-size: 1.1em;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width:550px) {
        .container{
            .choose{
                label{
                    width: 23%;
                }
            }
        }
    }
    @media screen and (max-width:410px) {
        .container{
            .showpic{
                .tu{
                    width: 80%;
                }
            }
        }
    }

}
// 解决方案
#solve {
    width: 100%;
    margin-top: 5em;
    padding-bottom: 3em;
    .container {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        // 标题
        .title {
            h3 {
                font-size: 2.5em;
                color: #333333;
                text-transform: uppercase;
            }

            .litter {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .left {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }

                p {
                    color: #87b434;
                    font-size: 1.3em;
                }

                .right {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }
            }
        }

        // 选项
        .choose {
            width: 90%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 0.5em;

            input {
                display: none;
            }

            label {
                width: 25%;
                cursor: pointer;
            }

            #chk5:checked+.choice {
                color: #87b434;
            }

            #chk6:checked+.choice {
                color: #87b434;
            }

            #chk7:checked+.choice {
                color: #87b434;
            }

            #chk8:checked+.choice {
                color: #87b434;
            }
        }

        // 内容
        .desc {
            .demo {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: #fff;
                margin: 1em 0;

                .left {
                    width: 50%;
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;

                    .word1 {
                        width: 67%;

                        .smtitle {
                            text-align: left;

                            h3 {
                                color: #313131;
                                font-size: 1.5em;
                            }

                            p {
                                color: #666666;
                                font-size: 1.5em;
                                text-transform: uppercase;
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                            }
                        }

                        .msg1 {
                            margin-top: 1em;
                            text-align: left;

                            p {
                                font-weight: lighter;
                                font-size: 1.1em;
                                color: #313131;
                            }
                        }
                    }
                }

                .right {
                    width: 50%;
                    flex-shrink: 0;
                }
            }
        }
    }
    @media screen and (max-width:675px) {
        &{
            margin-top: 3em;
            .container{
                padding-left: 0;
                padding-right: 0;
                .title {
                    h3 {
                        font-size: 2em;
                    }

                    .litter {
                        p {
                            font-size: 1.1em;
                        }
                    }
                }
                .desc{
                    .demo{
                        .left{
                            width: 60%;
                            .word1{
                                width: 90%;
                                .smtitle{
                                    h3{
                                        font-size: 1.2em;
                                    }
                                    p{
                                        font-size: 1.1em;
                                    }
                                }
                            }
                        }
                        .right{
                            width: 40%;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width:550px) {
        .container{
            width: 90%;
            .choose{
                label{
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
            .desc{
                .demo{
                    .left{
                        width: 90%;
                        .word1{
                            width: 90%;

                        }
                    }
                    .right{
                        display: none;
                    }
                }
            }
        }
    }
}
// 资讯中心
#askcenter {
    width: 100%;
    margin-top: 5em;

    .container {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        // 标题
        .title {
            h3 {
                font-size: 2.5em;
                color: #333333;
                text-transform: uppercase;
            }

            .litter {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .left {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }

                p {
                    color: #87b434;
                    font-size: 1.3em;
                }

                .right {
                    width: 25%;
                    height: 3px;
                    background-color: #87b434;
                }
            }
        }

        // 图片
        .imgs {
            width: 100%;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-top: 0.5em;

            .demo {
                width: 45%;
                display: flex;
                align-items: center;
                text-align: left;
                justify-content: center;
                padding: 3em 0;

                .left {
                    width: 27%;
                    flex-shrink: 0;
                }

                .right {
                    width: 70%;
                    margin-left: 1.3em;

                    h3 {
                        font-size: 1.3em;
                        font-weight: bold;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }

                    p {
                        margin: 0.5em 0;
                    }
                }

                &:nth-child(1) {
                    border-bottom: 1px solid #e5e5e5;
                }

                &:nth-child(2) {
                    border-bottom: 1px solid #e5e5e5;
                }
            }
        }
    }
    @media screen and (max-width:1000px) {
        .container{
            .imgs{
                .demo{
                    width: 95%;
                    &:nth-child(3){
                        border-bottom: 1px solid #e5e5e5;
                    }
                    &:nth-child(4){
                        border-bottom: 1px solid #e5e5e5;
                    }
                }
            }
        }
    }
    @media screen and (max-width:675px) {
        &{
            margin-top: 4px;
            .container{
                .title {
                    h3 {
                        font-size: 2em;
                    }

                    .litter {
                        p {
                            font-size: 1.1em;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width:390px) {
        .container{
            .imgs{
                .demo{
                    .left{
                        display: none;
                    }
                    .right{
                        width: 100%;
                    }
                }
            }
        }
    }
}

// 赞助
#sponsor {
    width: 100%;
    margin-top: 5em;
    background-color: #505050;

    .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5em 0;
    }
    @media screen and (max-width:675px) {
        &{
            margin-top: 0em;
            .container{
                .title {
                    h3 {
                        font-size: 2em;
                    }

                    .litter {
                        p {
                            font-size: 1.1em;
                        }
                    }
                }
            }
        }
    }
}

// 底部
#footer {
    width: 100%;
    background-color: #000000;

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #767481;
        padding: 1em 0;

        .left {
            img {
                margin-right: 0.5em;
            }
        }
        .mid{
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
    @media screen and (max-width:1000px) {
        .container{
            flex-wrap: wrap;
            flex-direction: column;
            .left{
                width: 100%;
                text-align: center;
            }
            .mid{
                width: 100%;
                text-align: center;
            }
            .right{
                width: 100%;
                text-align: center;
            }
        }
    }
}

// 侧边悬浮栏(完成）
#float {
    // .container {    
    width: 11.4em;
    position: fixed;
    bottom: 20%;
    right: 0;

    .box {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: center;

        .mod1 {
            display: block;
            color: #fff;
            background-color: #87b434;
            width: 100%;
            padding: 0.5em;

            h3 {
                font-size: 1.3em;
                line-height: 1.3em;
            }

            p {
                font-size: 1em;
                line-height: 1em;
                font-family: OSLight;
                text-transform: uppercase;
            }
        }

        .mod2 {
            display: block;
            display: flex;
            width: 100%;
            padding: 0.5em;
            background-color: #e89413;
            color: #fff;
            display: flex;
            justify-content: space-around;
            align-items: center;

            p {
                font-size: 1em;
            }
        }

        .mod3 {
            display: block;
            display: flex;
            width: 100%;
            padding: 0.5em;
            background-color: #828282;
            color: #fff;
            display: flex;
            justify-content: space-around;
            align-items: center;

            p {
                font-size: 1em;
            }
        }

        .mod4 {
            display: block;
            display: flex;
            width: 100%;
            padding: 0.5em;
            background-color: #87b434;
            color: #fff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            text-decoration: none;

            p {
                font-size: 1em;
            }
        }
    }

    // }
    @media screen and (max-width:500px) {
        & {
            width: 100%;
            position: relative;
            display: flex;
            flex-wrap: wrap;

            .box {
                width: 48%;
                height: 3em;

                .mod1 {
                    width: 100%;
                    height: 100%;
                    padding: 0;
                }

                .mod2 {
                    padding: 0;
                    width: 100%;
                    height: 100%;
                }

                .mod3 {
                    padding: 0;
                    width: 100%;
                    height: 100%;
                }

                .mod4 {
                    padding: 0;
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}